Crate thread_priority[][src]

Expand description

Thread priority. A library for changing thread’s priority.

Usage

Setting thread priority to minimum:

use thread_priority::*;

assert!(set_current_thread_priority(ThreadPriority::Min).is_ok());
// Or like this:
assert!(ThreadPriority::Min.set_for_current().is_ok());

Re-exports

pub use unix::*;

Modules

This module defines the unix thread control.

Structs

Represents an OS thread.

Enums

A error type

Thread priority enumeration.